# Config模块测试
if(BUILD_TESTS)
    find_package(GTest REQUIRED)
    
    file(GLOB CONFIG_TEST_SOURCES *.cpp)
    
    add_executable(config_test ${CONFIG_TEST_SOURCES})
    target_include_directories(config_test PRIVATE
        ${CMAKE_CURRENT_SOURCE_DIR}/../../include/config
    )
    
    target_link_libraries(config_test
        config
        core  # 依赖core模块
        GTest::GTest
        GTest::Main
    )
    
    add_test(NAME config_test COMMAND config_test)
endif()